<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
	<h:outputStylesheet name="css/login.css"></h:outputStylesheet>
	<h:form id="login">
		<p:panel header="Login">
			<p:growl id="msgs" showDetail="true" sticky="true" />
			<h:panelGrid columns="2">
				<h:outputLabel styleClass="outputLabel" for="username" value="Username: *" />
				<p:inputText id="username" value="#{authenticationBean.username}"
					required="true" label="Username">
					<f:validateLength minimum="2" />
				</p:inputText>

				<h:outputLabel styleClass="outputLabel" for="password" value="Password: *" />
				<p:password id="password" value="#{authenticationBean.password}"
					required="true" label="Password" />

				<h:outputLabel styleClass="outputLabel" for="rememberMe" value="Remember Me" />
				<p:selectBooleanCheckbox id="rememberMe"
					value="#{authenticationBean.remember}" />

				<h:panelGroup />
				<p:commandButton value="Login"
					action="#{authenticationBean.doLogin}" update=":login:msgs" />
			</h:panelGrid>
		</p:panel>
	</h:form>
</h:body>
</html>